package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.ExperimentProcessSampleHstq;
import com.zhijian.medical.entity.vo.request.ExperimentProcessSampleHstqSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.ExperimentProcessSampleHstqSearchVo;
import com.zhijian.medical.entity.vo.request.SampleHstqSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessSampleHstqListVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessSampleHstqVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessSampleVo;
import com.zhijian.medical.util.Page;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 样本核酸提取 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-08-19 10:18:37
 */
public interface ExperimentProcessSampleHstqService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    ExperimentProcessSampleHstq selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    ExperimentProcessSampleHstqVo selectVoById(Long id);

    /**
     * 主键查询listVo
     *
     * @param id
     * @return
     */
    ExperimentProcessSampleHstqListVo selectListVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param experimentProcessSampleHstq
     * @return
     */
    Long insert(ExperimentProcessSampleHstq experimentProcessSampleHstq);

    /**
     * 更改
     *
     * @param experimentProcessSampleHstq
     * @return
     */
    boolean update(ExperimentProcessSampleHstq experimentProcessSampleHstq);

    /**
     * 更改
     *
     * @param sampleHstqSaveOrUpdateVo
     * @return
     */
    boolean update(SampleHstqSaveOrUpdateVo sampleHstqSaveOrUpdateVo);

    /**
     * 动态更改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(ExperimentProcessSampleHstq record);

    /**
     * 总数
     *
     * @param experimentProcessSampleHstqSearchVo
     * @return
     */
    Integer count(ExperimentProcessSampleHstqSearchVo experimentProcessSampleHstqSearchVo);

    /**
     * 列表
     *
     * @param experimentProcessSampleHstqSearchVo
     * @return
     */
    List<ExperimentProcessSampleHstqListVo> selectList(ExperimentProcessSampleHstqSearchVo experimentProcessSampleHstqSearchVo);

    /**
     * 分页查询
     *
     * @param experimentProcessSampleHstqSearchVo
     * @return
     */
    Page<ExperimentProcessSampleHstqListVo> selectPage(ExperimentProcessSampleHstqSearchVo experimentProcessSampleHstqSearchVo);

    /**
     * 新保存一条记录，并且修改样本的状态
     *
     * @param experimentProcessSampleHstqSaveOrUpdateVo
     * @return
     */
    boolean saveDetail(ExperimentProcessSampleHstqSaveOrUpdateVo experimentProcessSampleHstqSaveOrUpdateVo);

    /**
     * 保存
     *
     * @param sampleHstqSaveOrUpdateVo
     * @return
     */
    boolean saveDetail(SampleHstqSaveOrUpdateVo sampleHstqSaveOrUpdateVo);

    /**
     * 导入csv
     *
     * @param hstqId
     * @param file
     * @return
     */
    List<ExperimentProcessSampleVo> importCsv(Long hstqId, MultipartFile file);

}